<template>
    <div class="summary">
        <span>全部任务({{store.tasklist.length}})</span>
        <span>已完成({{store.tasklist.length-store.countNum}})</span>
        <span>未完成({{store.countNum}})</span>
    </div>
</template>

<script setup>
import { useTasklistStore } from '../stores/tasklist'
var store = useTasklistStore()

</script>

<style scoped>
.summary{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px;
}
.summary span{
  background-color: rgb(33, 146, 216);
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 5px;
  padding: 0 20px;
}
.summary span:nth-child(1) {
    background-color: red;
}
.summary span:nth-child(2) {
    background-color:  yellow ;
}
</style>